+Sun Feb 21 17:14:44 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Always
+ set the max width or height to at least 1, since 0
+ triggers bugs in some window managers. (The window
+ "pops out" of the frame in fvwm)
+
Sun Feb 21 16:16:22 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c:
+Sun Feb 21 17:14:44 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Always
+ set the max width or height to at least 1, since 0
+ triggers bugs in some window managers. (The window
+ "pops out" of the frame in fvwm)
+
Sun Feb 21 16:16:22 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c:
+Sun Feb 21 17:14:44 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Always
+ set the max width or height to at least 1, since 0
+ triggers bugs in some window managers. (The window
+ "pops out" of the frame in fvwm)
+
Sun Feb 21 16:16:22 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c:
+Sun Feb 21 17:14:44 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Always
+ set the max width or height to at least 1, since 0
+ triggers bugs in some window managers. (The window
+ "pops out" of the frame in fvwm)
+
Sun Feb 21 16:16:22 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c:
+Sun Feb 21 17:14:44 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Always
+ set the max width or height to at least 1, since 0
+ triggers bugs in some window managers. (The window
+ "pops out" of the frame in fvwm)
+
Sun Feb 21 16:16:22 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c:
+Sun Feb 21 17:14:44 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Always
+ set the max width or height to at least 1, since 0
+ triggers bugs in some window managers. (The window
+ "pops out" of the frame in fvwm)
+
Sun Feb 21 16:16:22 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c:
+Sun Feb 21 17:14:44 1999 Owen Taylor <otaylor@redhat.com>
+
+ * gdk/gdkwindow.c (gdk_window_set_geometry_hints): Always
+ set the max width or height to at least 1, since 0
+ triggers bugs in some window managers. (The window
+ "pops out" of the frame in fvwm)
+
Sun Feb 21 16:16:22 1999 Owen Taylor <otaylor@redhat.com>
* gtk/gtkscrolledwindow.c gdk/gdkfont.c gdk/gdkim.c:
if (geom_mask & GDK_HINT_MAX_SIZE)
{
size_hints.flags |= PMaxSize;
- size_hints.max_width = geometry->max_width;
- size_hints.max_height = geometry->max_height;
+ size_hints.max_width = MAX (geometry->max_width, 1);
+ size_hints.max_height = MAX (geometry->max_height, 1);
}
if (geom_mask & GDK_HINT_BASE_SIZE)
if (geom_mask & GDK_HINT_MAX_SIZE)
{
size_hints.flags |= PMaxSize;
- size_hints.max_width = geometry->max_width;
- size_hints.max_height = geometry->max_height;
+ size_hints.max_width = MAX (geometry->max_width, 1);
+ size_hints.max_height = MAX (geometry->max_height, 1);
}
if (geom_mask & GDK_HINT_BASE_SIZE)